package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetmeal;
import com.itheima.pojo.Order;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderService {
    public Result order(Map map) throws Exception;
    public Map findById(Integer id) throws Exception;
    //获取订单信息和套餐信息
    Map<String, Object> findOrderAndSetmeal(OrderSetmeal orderSetmeal);
    //预约订单管理分页查询
    PageResult pageQuery(QueryPageBean queryPageBean);
    //预约订单管理数据回显
    Order findByOrderId(int id);
    //编辑
    void editByOrderId(Order order);
    //更改预约状态
    void changeStatus(Order order);
    //删除预约信息
    void deleteByorderId(int id);
    // 添加预约信息
    Result addOrder(Map<String, String> map) throws Exception;
    public PageResult findPage(QueryPageBean queryPageBean);

    public List<Order> findByMemberTelephone(String telephone);
    public void changeStatus(Integer id);

    Order getOrder(Integer orderId);

    void updateState(Integer orderId);

    String findStateById(Integer id);
}
